package com.feihao.zhou.demoJunitTest;

import org.junit.Assert;
import org.junit.Test;

public class TestDemo {
    static Student s = new Student(17,"张三");
    @Test
    public void testReturnName(){
        //测试Student中的方法：
        String s1 = s.returnName();
        System.out.println(s1);
    }


    @Test
    public void testAdd(){
        int add = s.add(22, 65);
        //断言
        Assert.assertEquals(87,add);
        System.out.println(add);
    }
}
